Thực đơn
Bản_mẫu:Columns-list Sử dụngThe width of each column may be specified using |colwidth=
and a value in ems.
{{columns-list|colwidth=width|Text (usually a list)}}
Here, width specifies the width of the columns, and determines dynamically the number of columns based on screen width; more columns will be shown on wider displays.
If |colwidth=
is not specified, the default width of 30em will be used.
This template uses CSS3 multiple-column layout, which is not supported by all Web browsers.
Internet Explorer | Firefox | Safari | Chrome | Opera |
---|---|---|---|---|
≤ 9 | ≤ 1.0 | ≤ 2 | Không có | ≤ 11.0 |
≥ 10 (2012) | ≥ 1.5 (2005) | ≥ 3 (2007) | ≥ 1 (2008) | ≥ 11.1 (2011) |
Đây là một ví dụ:
{{columns-list|colwidth=35em|* [[George Washington]]* [[John Adams]]* [[Thomas Jefferson]]* [[James Madison]]* [[James Monroe]]}}
mà sẽ hiển thị như sau:
Các kiểu CSS cũng có thể được thêm vào với tham số |style=
. Cho ví dụ:
{{columns-list|colwidth=15em|style=width: 600px; font-style: italic;|* [[All About Lily Chou-Chou]]* [[April Story]]* [[Hana and Alice|Hana & Alice]]* [[Hōtai Club]]* [[The Kon Ichikawa Story]]* [[Love Letter (1995 film)|Love Letter]]* [[New York, I Love You]]* [[Picnic (1996 film)|Picnic]]* [[Rainbow Song]]* [[Swallowtail (film)|Swallowtail]]}}
mà sẽ hiển thị như sau:
Bản mẫu này cũng hoạt động với các danh sách được đánh số là "văn bản" của nó. Cho ví dụ:
{{columns-list|colwidth=35em|# [[George Washington]]# [[John Adams]]# [[Thomas Jefferson]]# [[James Madison]]# [[James Monroe]]}}
The template, in fact, works with everything since all it does is wrap the text provided around a block to be divided into columns by CSS. Do not stop at wikitext lists – more advanced lists generated by the HTML templates will work too!
Thực đơn
Bản_mẫu:Columns-list Sử dụngLiên quan
Bản Máy Bản mở rộng Bản Mù Bản Mế Bản Motet Bản mạch chủ Bản mẫu Bản danh sách của Schindler Bảng mã IOC Bản quyền thể thao tại Việt NamTài liệu tham khảo
WikiPedia: Bản_mẫu:Columns-list